package control;

import java.io.IOException;
import java.util.List;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

import dao.DAOAluno;


public class ListarPainelTag extends SimpleTagSupport {
	
	private String cla;
	
	public void doTag()throws JspException, IOException {

		DAOAluno daoAlu = new DAOAluno();
		List<Object> lista = daoAlu.findAllByClass(cla);

		getJspContext().setAttribute("lista", lista);
		getJspBody().invoke(null);
	}
	public void setClasse (String c)
		{
		 this.cla=c;
		}
}
